package xyz.xtt.exchange.constants;

/**
 * @author huqibo
 * @date 2025/01/08
 */
public enum DeliverResult {
	/**
	 * 失败
	 */
	FAIL(0, "失败"),
	/**
	 * 成功
	 */
	SUCC(1, "成功"),
	/**
	 * 部分成功
	 */
	ANY_SUCC(2, "部分成功"),;

	private int code;
	private String desc;

	private DeliverResult(int code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public int code() {
		return code;
	}

	/**
	 * 获取描述
	 * 
	 * @return
	 */
	public String desc() {
		return desc;
	}
}
